package com.vhall.component.entity.audit.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 审核记录表
 * @TableName audit_record
 */
@TableName(value ="audit_record")
@Data
public class AuditRecordEntity implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 审核状态,9:待送审,0:待审核,1:审核通过,-1:审核驳回
     */
    @TableField(value = "audit_status")
    private Integer auditStatus;

    /**
     * 审核意见
     */
    @TableField(value = "audit_comments")
    private String auditComments;

    /**
     * 审核关联数据 id,用于进行判定当前审核记录关联对应表的记录主键 id,例如关联rooms 表,该值记录 il_id
     */
    @TableField(value = "audit_table_record_id")
    private String auditTableRecordId;

    /**
     * 审核关联表,用于进行判定当前审核记录关联的表是什么表例如直播审核,rooms
     */
    @TableField(value = "audit_table")
    private String auditTable;

    /**
     * 审核轮数【某条数据需要多方人员，多轮审核，默认为1 】
     */
    @TableField(value = "audit_rounds")
    private Integer auditRounds;

    /**
     * 审核人
     */
    @TableField(value = "reviewer_id")
    private Integer reviewerId;

    /**
     * 创建人 id
     */
    @TableField(value = "account_id")
    private Integer accountId;

    /**
     * 更新人 id
     */
    @TableField(value = "update_by")
    private Integer updateBy;

    /**
     * 创建时间
     */
    @TableField(value = "created_at")
    private LocalDateTime createdAt;

    /**
     * 更新时间
     */
    @TableField(value = "updated_at")
    private LocalDateTime updatedAt;

    /**
     * 
     */
    @TableField(value = "deleted_at")
    private LocalDateTime deletedAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}